﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DNASequencing.core.Algorithms;

namespace DNASequencing.core.Loggers
{
    class StrictLogger : SelectiveLogger
    {
        public static void printSequence(List<Oligonucleotide> result)
        {
            System.Console.WriteLine("DEBUG LOL \n\n");

            int err = 0;
            for (int i = 0; i < result.Count; ++i)
            {
                int currErr = result[i].error >= 0 ? result[i].error : 0;
                err += currErr;
                for (int j = 0; j < i + err; ++j)
                    System.Console.Write(" ");
                System.Console.Write(result[i].originalSequence);
                if (currErr != 0)
                {
                    System.Console.Write("\t\t");
                    for (int j = 0; j < 10; ++j)
                        System.Console.Write(currErr);
                }
                System.Console.WriteLine();
            }
        }
    }
}
